import { axios } from '@/utils/request';

const api = {
    page: 'dev/formext/page',
    get: 'dev/formext/get/',
    create: 'dev/formext/create',
    update: 'dev/formext/update',
    delete: 'dev/formext/delete/'
};

// 表单扩展管理-分页
export function page(params) {
    return axios({
        url: api.page,
        method: 'get',
        params
    });
}
// 表单扩展管理-主键查询
export function get(params) {
    return axios({
        url: api.get + params,
        method: 'get'
    });
}
// 表单扩展管理-新增
export function create(data) {
    return axios({
        url: api.create,
        method: 'post',
        data
    });
}
// 表单扩展管理-修改
export function update(data) {
    return axios({
        url: api.update,
        method: 'put',
        data
    });
}
// 表单扩展管理-删除
export function deleteBatch(data) {
    return axios({
        url: api.delete + data,
        method: 'delete'
    });
}
